package com.ruoyi.produce.process.datacollection.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.sql.Timestamp;

/**
 * 查询条件
 */
@Data
public class DataCollectionCond extends BaseEntity {
    /**
     * 班次编号
     */
    @NotNull(message = "班次编号不能为空")
    @ApiModelProperty(value = "班次编号", required = true)
    private String shiftInfoId;

    /**
     * 机器编号
     */
    @NotNull(message = "机器编号不能为空")
    @ApiModelProperty(value = "机器编号", required = true)
    private String machineId;

    /**
     * 员工编号
     */
    @NotNull(message = "员工编号不能为空")
    @ApiModelProperty(value = "员工编号", required = true)
    private String staffId;

    /**
     * 加工单编号
     */
    @NotNull(message = "加工单编号不能为空")
    @ApiModelProperty(value = "加工单编号", required = true)
    private String workSheetId;

    /**
     * 产品编号
     */
    @ApiModelProperty("产品编号")
    private String produceId;

    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp createTime;
}
